[newbie]remove .svn directory

I want to remove .svn directories, and I found the solution below on the
internet:
find . -name .svn -exec rm -vrf {} \;
Can anyone explain to me what exactly does it mean? Thank you!
Tony Winslow [ Fr, 04 Januar 2008 15:05 ] [ ID #1899395 ]

Re: [newbie]remove .svn directory

On 1/4/2008 8:05 AM, Tony Winslow wrote:
> I want to remove .svn directories, and I found the solution below on the
> internet:
> find . -name .svn -exec rm -vrf {} \;
> Can anyone explain to me what exactly does it mean? Thank you!

find .
= find from the current directory (.) down

-name .svn
= all files and directories named ".svn"

-exec
= and execute the following command:

rm -vrf
= which is the "rm" command using arguments "-vrf" (man rm)

{} \;
= giving that command each file/dir name as it's found.

Ed.
Ed Morton [ Fr, 04 Januar 2008 16:28 ] [ ID #1899407 ]

Re: [newbie]remove .svn directory

Tony Winslow wrote:
> I want to remove .svn directories, and I found the solution below on the
> internet:
> find . -name .svn -exec rm -vrf {} \;
> Can anyone explain to me what exactly does it mean? Thank you!

Or checkout your dirs and files without creating .svn dirs:

svn export URL

--
Best regards | Be nice to America or they'll bring democracy to
Cyrus | your country.
Cyrus Kriticos [ Fr, 04 Januar 2008 16:37 ] [ ID #1899410 ]
Linux » comp.unix.shell » [newbie]remove .svn directory

Vorheriges Thema: Req: Windows System Administrator / Domain Migration Specialist
Nächstes Thema: assign command result to variable